package net.stuffrepos.bricknetcenter.http;

import java.net.URL;
import org.apache.http.params.HttpParams;

/**
 *
 * @author Eduardo H. Bogoni <eduardobogoni@gmail.com>
 */
public interface HttpRequest {

    public URL getUrl();

    public URL getReferer();

    public Class<? extends HttpParser> getParserClass();

    public Object[] getParserArguments();

    public int getPriority();

    public PostParameter[] getPostParameters();

    public Method getMethod();
    
    public static class PostParameter {
        private String name;
        private String value;
        
        public PostParameter(String name, String value) {
            this.name = name;
            this.value = value;
        }

        public PostParameter(String name, char value) {
            this(name,Character.toString(value));
        }
                
        public String getName() {
            return name;
        }
        public String getValue() {
            return value;
        }
    }

    public static enum Method {

        Get,
        Post
    }
}
